package encrypt

// 32位hash计算
func Hash32(s string) uint32 {
	var hash uint32
	for i := 0; i < len(s); i++ {
		hash = 31*hash + uint32(s[i])
	}
	return hash
}
